import request from '@/utils/request'

export function getShippingTemplatesList (params:any) {
    return request({
        url: 'store.shippingTemplates/list',
        method: 'GET',
        params
    })
}
export function getShippingTemplatesSelect () {
    return request({
        url: 'store.shippingTemplates/select',
        method: 'GET'
    })
}

export function createShippingTemplates (data:any) {
    return request({
        url: 'store.shippingTemplates/create',
        method: 'POST',
        data
    })
}
export function updateShippingTemplates (data:any) {
    return request({
        url: `store.shippingTemplates/update`,
        method: 'PUT',
        data
    })
}
export function updateStatusShippingTemplates (data:{id:number|string,status:number|string}) {
    return request({
        url: `store.shippingTemplates/status`,
        method: 'PUT',
        data
    })
}

export function delShippingTemplates (data:{id:number|string}) {
    return request({
        url: `store.shippingTemplates/delete`,
        method: 'DELETE',
        data
    })
}

export function getShippingTemplatesDetail (params:{id:number|string}) {
    return request({
        url: `store.shippingTemplates/detail`,
        method: 'GET',
        params
    })
}